﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {

            Car car = new Car();
            RepaireFactory RepaireFactory = new RepaireFactory();

            Console.WriteLine("请输入车子的颜色");
            car.CarColor = Console.ReadLine();
            Console.WriteLine("请输入车子的名字");
            car.CarName = Console.ReadLine();
            Console.WriteLine("请输入车子的轮子");
            car.CarWheel = int.Parse(Console.ReadLine());

            if (car.CarWheel >= 4)
            {
                car.Run();
            }

            else
            {
                Console.WriteLine("请输入修车厂的电话");
             
                Console.WriteLine("请输入修车厂的名字");
                
                Console.WriteLine("请输入修车厂的地址");
               }

            Console.ReadKey();
        }
 

    }
}
